Spring Data by Mark Pollack Oliver Gierke Thomas Risberg Jon Brisbin & Michael Hunger
Author:Mark Pollack, Oliver Gierke, Thomas Risberg, Jon Brisbin & Michael Hunger [Mark Pollack, Oliver Gierke, Thomas Risberg, Jon Brisbin, and Michael Hunger]
Language: eng
Format: epub, pdf
Tags: COMPUTERS / Database Management / Data Mining
ISBN: 9781449323943
Publisher: O'Reilly Media
Published: 2012-10-11T16:00:00+00:00
The first thing to notice here is that we triggered the curl command with the -v flag. This flag activates verbose output, listing all the request and response headers alongside the actual response data. We see that the server returns data of the content type application/json by default. The actual response body contains a set of links we can follow to explore the application. Each of the links provided is actually derived from a Spring Data repository available in the ApplicationContext. We have a CustomerRepository, a ProductRepository, and an OrderRepository, so the relation type (rel) attributes are customer, product, and order (the first part of the repository name beginning with a lowercase character). The resource URIs are derived using that default as well. To customize this behavior, you can annotate the repository interface with @RestResource, which allows you to explicitly define path (the part of the URI) as well as the rel (the relation type).
Links
The representation of a link is usually derived from the link element defined in the Atom RFC. It basically consists of two attributes: a relation type (rel) and a hypertext reference (href) . The former defines the actual semantics of the link (and thus has to be documented or standardized), whereas the latter is actually opaque to the client. A client will usually inspect a link’s response body for relation types and follow the links with relation types it is interested in. So basically the client knows it will find all orders behind links with a rel of order. The actual URI is not relevant. This structure results in decoupling of the client and the server, as the latter tells the client where to go. This is especially useful in case a URI changes or the server actually wants to point the client to a different machine to load-balance requests.
Download
Spring Data by Mark Pollack Oliver Gierke Thomas Risberg Jon Brisbin & Michael Hunger.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8308)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6784)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6757)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6644)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6431)
Driving Data Quality with Data Contracts by Andrew Jones(6371)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6132)
Learning SQL by Alan Beaulieu(6003)
Weapons of Math Destruction by Cathy O'Neil(5794)
Big Data Analysis with Python by Ivan Marin(5385)
Data Engineering with dbt by Roberto Zagni(4389)
Solidity Programming Essentials by Ritesh Modi(4038)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3896)
Pandas Cookbook by Theodore Petrou(3598)
Blockchain Basics by Daniel Drescher(3304)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2914)
Feature Store for Machine Learning by Jayanth Kumar M J(2819)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2801)
Mastering Python for Finance by Unknown(2748)
